package ar.com.framenet.base.exception;

/**
 * ApplicationRuntimeException
 * 
 * @author sam
 * 
 */
@SuppressWarnings("serial")
public class ApplicationRuntimeException extends RuntimeException {

	private String code = "";
	private int errorNumber = -1;
	private String message = "";

	/**
	 * 
	 */
	public ApplicationRuntimeException() {
		super();
	}

	/**
	 * @param message
	 */
	public ApplicationRuntimeException(String message) {
		super(message);
		this.message = message;
	}

	/**
	 * @param cause
	 */
	public ApplicationRuntimeException(Throwable cause) {
		super(cause);
	}

	/**
	 * @param message
	 * @param cause
	 */
	public ApplicationRuntimeException(String message, Throwable cause) {
		super(message, cause);
		this.message = message;
	}

	/**
	 * @return
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @return
	 */
	public int getErrorNumber() {
		return errorNumber;
	}

	/**
	 * @param string
	 */
	public void setCode(String string) {
		code = string;
	}

	/**
	 * @param i
	 */
	public void setErrorNumber(int i) {
		errorNumber = i;
	}

	/**
	 * @return
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param string
	 */
	public void setMessage(String string) {
		message = string;
	}
}